import axios from './request'

import type { AxiosRequestConfig } from 'axios'
import type { IchangeArticle } from '@/types/article'
type article = {
  skip: string | number
  limit: string | number
  cate_id?: string
  author?: string
  title?: string
}

export const getAllArticle = (data: article) =>
  axios.post('/article/all_article', data)
export const changeArticle = (data: IchangeArticle) =>
  axios.post('/article/change_article', data)
